package edu.gatech.volt2.drdoommgt.domain;

/**
 * Creates vital signs to be attached to treatment records
 * @author Khalen Morehead
 */
public class VitalSigns 
{
	private String bloodPressure;
	private int pulse;
	private double temp;
	private int heightFeet;
	private int heightInches;
	private int weight;
	
	/**
	 * Default constructor
	 */
	public VitalSigns()
	{
		this.bloodPressure = "N/A"; 
		this.pulse = 0;
		this.temp = 0;
		this.heightFeet = 0;
		this.heightInches = 0;
		this.weight = 0;
	}
	
	/**
	 * Constructor that takes in passed in objects
	 * @param bloodPressure Patient's blood pressure
	 * @param pulse Patient's pulse
	 * @param temp Patient's temperature
	 * @param heightFeet Feet of patient's height
	 * @param heightInches Inches of patient's height 
	 * @param weight Patient's weight
	 */
	public VitalSigns(String bloodPressure, int pulse, double temp, 
			int heightFeet, int heightInches, int weight)
	{
		this.bloodPressure=(bloodPressure==null ? "N/A" : bloodPressure);
		this.pulse=pulse;
		this.temp=temp;
		this.heightFeet=heightFeet;
		this.heightInches=heightInches;
		this.weight=weight;
	}
	
	/**
	 * Concatenates string of information in class
	 * @return string of info in class
	 */
	public String toString()
	{
		return "Blood Pressure: " + bloodPressure + "\nPulse: " + pulse + 
		"\nTemperature: " + temp + "\nHeight: " + heightFeet + " feet, " + 
		heightInches + " inches" + "\nWeight: " + weight + " lbs";
	}
	
	/**
	 * Blood pressure getter
	 * @return Patient's blood pressure 
	 */
	public String getBP()
	{
		return bloodPressure;
	}
	
	/**
	 * Blood pressure setter
	 * @param bloodPressure Patient's blood pressure
	 */
	public void setPB(String bloodPressure)
	{
		this.bloodPressure=bloodPressure;
	}
	
	/**
	 * Pulse getter
	 * @return Patient's pulse
	 */
	public int getPulse()
	{
		return pulse;
	}
	
	/**
	 * Pulse setter
	 * @param pulse Patient's pulse
	 */
	public void setPulse(int pulse)
	{
		this.pulse=pulse;
	}
	
	/**
	 * Temperature getter
	 * @return Patient's temperature
	 */
	public double getTemp()
	{
		return temp;
	}
	
	/**
	 * Temperature setter
	 * @param temp Patient's temperature
	 */
	public void setTemp(double temp)
	{
		this.temp=temp;
	}
	
	/**
	 * Feet height getter
	 * @return Feet height of patient
	 */
	public int getHeightFeet()
	{
		return heightFeet;
	}
	
	/**
	 * Feet height setter
	 * @param heightFeet Patient's feet height
	 */
	public void setHeightFeet(int heightFeet)
	{
		this.heightFeet=heightFeet;
	}
	
	/**
	 * Inches height getter
	 * @return Patient's inches height
	 */
	public int getHeightInches()
	{
		return heightInches;
	}
	
	/**
	 * Inches height setter
	 * @param heightInches Patient's inches height
	 */
	public void setHeightInches(int heightInches)
	{
		this.heightInches=heightInches;
	}
	
	/**
	 * Weight getter
	 * @return Patient's weight
	 */
	public int getWeight()
	{
		return weight;
	}
	
	/**
	 * Weight setter
	 * @param weight Patient's weight
	 */
	public void setWeight(int weight)
	{
		this.weight=weight;
	}
}
